home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / CIncludes / ImageCompression.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  33.0 KB  |  704 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ImageCompression.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __IMAGECOMPRESSION__
  18. #define __IMAGECOMPRESSION__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __QUICKDRAW__
  27. #include <Quickdraw.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30. /*    #include <QuickdrawText.h>                                    */
  31.  
  32. #ifndef __QDOFFSCREEN__
  33. #include <QDOffscreen.h>
  34. #endif
  35. /*    #include <Errors.h>                                            */
  36.  
  37. #ifndef __COMPONENTS__
  38. #include <Components.h>
  39. #endif
  40.  
  41. #ifndef __WINDOWS__
  42. #include <Windows.h>
  43. #endif
  44. /*    #include <Memory.h>                                            */
  45. /*    #include <Events.h>                                            */
  46. /*        #include <OSUtils.h>                                    */
  47. /*    #include <Controls.h>                                        */
  48. /*        #include <Menus.h>                                        */
  49.  
  50. #ifndef __STANDARDFILE__
  51. #include <StandardFile.h>
  52. #endif
  53. /*    #include <Dialogs.h>                                        */
  54. /*        #include <TextEdit.h>                                    */
  55. /*    #include <Files.h>                                            */
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. #if GENERATINGPOWERPC
  62. #pragma options align=mac68k
  63. #endif
  64.  
  65. #ifdef __CFM68K__
  66. #pragma lib_export on
  67. #endif
  68.  
  69. struct MatrixRecord {
  70.     Fixed                            matrix[3][3];
  71. };
  72. typedef struct MatrixRecord MatrixRecord;
  73.  
  74. typedef MatrixRecord *MatrixRecordPtr;
  75.  
  76. struct FixedPoint {
  77.     Fixed                            x;
  78.     Fixed                            y;
  79. };
  80. typedef struct FixedPoint FixedPoint;
  81.  
  82. struct FixedRect {
  83.     Fixed                            left;
  84.     Fixed                            top;
  85.     Fixed                            right;
  86.     Fixed                            bottom;
  87. };
  88. typedef struct FixedRect FixedRect;
  89.  
  90. /* These are the bits that are set in the Component flags, and also in the codecInfo struct. */
  91.  
  92. enum {
  93.     codecInfoDoes1                = (1L << 0),
  94.     codecInfoDoes2                = (1L << 1),
  95.     codecInfoDoes4                = (1L << 2),
  96.     codecInfoDoes8                = (1L << 3),
  97.     codecInfoDoes16                = (1L << 4),
  98.     codecInfoDoes32                = (1L << 5),
  99.     codecInfoDoesDither            = (1L << 6),
  100.     codecInfoDoesStretch        = (1L << 7),
  101.     codecInfoDoesShrink            = (1L << 8),
  102.     codecInfoDoesMask            = (1L << 9),
  103.     codecInfoDoesTemporal        = (1L << 10),
  104.     codecInfoDoesDouble            = (1L << 11),
  105.     codecInfoDoesQuad            = (1L << 12),
  106.     codecInfoDoesHalf            = (1L << 13),
  107.     codecInfoDoesQuarter        = (1L << 14),
  108.     codecInfoDoesRotate            = (1L << 15),
  109.     codecInfoDoesHorizFlip        = (1L << 16),
  110.     codecInfoDoesVertFlip        = (1L << 17),
  111.     codecInfoDoesSkew            = (1L << 18),
  112.     codecInfoDoesBlend            = (1L << 19),
  113.     codecInfoDoesWarp            = (1L << 20),
  114.     codecInfoDoesRecompress        = (1L << 21),
  115.     codecInfoDoesSpool            = (1L << 22),
  116.     codecInfoDoesRateConstrain    = (1L << 23)
  117. };
  118.  
  119. enum {
  120.     codecInfoDepth1                = (1L << 0),
  121.     codecInfoDepth2                = (1L << 1),
  122.     codecInfoDepth4                = (1L << 2),
  123.     codecInfoDepth8                = (1L << 3),
  124.     codecInfoDepth16            = (1L << 4),
  125.     codecInfoDepth32            = (1L << 5),
  126.     codecInfoDepth24            = (1L << 6),
  127.     codecInfoDepth33            = (1L << 7),
  128.     codecInfoDepth34            = (1L << 8),
  129.     codecInfoDepth36            = (1L << 9),
  130.     codecInfoDepth40            = (1L << 10),
  131.     codecInfoStoresClut            = (1L << 11),
  132.     codecInfoDoesLossless        = (1L << 12),
  133.     codecInfoSequenceSensitive    = (1L << 13)
  134. };
  135.  
  136. enum {
  137.     codecFlagUseImageBuffer        = (1L << 0),
  138.     codecFlagUseScreenBuffer    = (1L << 1),
  139.     codecFlagUpdatePrevious        = (1L << 2),
  140.     codecFlagNoScreenUpdate        = (1L << 3),
  141.     codecFlagWasCompressed        = (1L << 4),
  142.     codecFlagDontOffscreen        = (1L << 5),
  143.     codecFlagUpdatePreviousComp    = (1L << 6),
  144.     codecFlagForceKeyFrame        = (1L << 7),
  145.     codecFlagOnlyScreenUpdate    = (1L << 8),
  146.     codecFlagLiveGrab            = (1L << 9),
  147.     codecFlagDontUseNewImageBuffer = (1L << 10),
  148.     codecFlagInterlaceUpdate    = (1L << 11),
  149.     codeFlagCatchUpDiff            = (1L << 12),
  150.     codecFlagUsedNewImageBuffer    = (1L << 14),
  151.     codecFlagUsedImageBuffer    = (1L << 15)
  152. };
  153.  
  154. enum {
  155. /* The minimum data size for spooling in or out data */
  156.     codecMinimumDataSize        = 32768
  157. };
  158.  
  159. enum {
  160.     compressorComponentType        = 'imco',                        /* the type for "Components" which compress images */
  161.     decompressorComponentType    = 'imdc'
  162. };
  163.  
  164. typedef Component CompressorComponent;
  165.  
  166. typedef Component DecompressorComponent;
  167.  
  168. typedef Component CodecComponent;
  169.  
  170. #define anyCodec ((CodecComponent)0)
  171. #define bestSpeedCodec ((CodecComponent)-1)
  172. #define bestFidelityCodec ((CodecComponent)-2)
  173. #define bestCompressionCodec ((CodecComponent)-3)
  174. typedef long CodecType;
  175.  
  176. typedef unsigned short CodecFlags;
  177.  
  178. typedef unsigned long CodecQ;
  179.  
  180.  
  181. enum {
  182.     codecLosslessQuality        = 0x400L,
  183.     codecMaxQuality                = 0x3ffL,
  184.     codecMinQuality                = 0x000L,
  185.     codecLowQuality                = 0x100L,
  186.     codecNormalQuality            = 0x200L,
  187.     codecHighQuality            = 0x300L
  188. };
  189.  
  190. enum {
  191.     codecCompletionSource        = (1 << 0),                        /* asynchronous codec is done with source data */
  192.     codecCompletionDest            = (1 << 1)                        /* asynchronous codec is done with destination data */
  193. };
  194.  
  195. enum {
  196.     codecProgressOpen            = 0,
  197.     codecProgressUpdatePercent    = 1,
  198.     codecProgressClose            = 2
  199. };
  200.  
  201. typedef pascal OSErr (*ICMDataProcPtr)(Ptr *dataP, long bytesNeeded, long refcon);
  202. typedef pascal OSErr (*ICMFlushProcPtr)(Ptr data, long bytesAdded, long refcon);
  203. typedef pascal void (*ICMCompletionProcPtr)(OSErr result, short flags, long refcon);
  204. typedef pascal OSErr (*ICMProgressProcPtr)(short message, Fixed completeness, long refcon);
  205. typedef pascal void (*StdPixProcPtr)(PixMap *src, Rect *srcRect, MatrixRecord *matrix, short mode, RgnHandle mask, PixMap *matte, Rect *matteRect, short flags);
  206. typedef pascal void (*ICMAlignmentProcPtr)(Rect *rp, long refcon);
  207.  
  208. #if GENERATINGCFM
  209. typedef UniversalProcPtr ICMDataUPP;
  210. typedef UniversalProcPtr ICMFlushUPP;
  211. typedef UniversalProcPtr ICMCompletionUPP;
  212. typedef UniversalProcPtr ICMProgressUPP;
  213. typedef UniversalProcPtr StdPixUPP;
  214. typedef UniversalProcPtr ICMAlignmentUPP;
  215. #else
  216. typedef ICMDataProcPtr ICMDataUPP;
  217. typedef ICMFlushProcPtr ICMFlushUPP;
  218. typedef ICMCompletionProcPtr ICMCompletionUPP;
  219. typedef ICMProgressProcPtr ICMProgressUPP;
  220. typedef StdPixProcPtr StdPixUPP;
  221. typedef ICMAlignmentProcPtr ICMAlignmentUPP;
  222. #endif
  223.  
  224. typedef long ImageSequence;
  225.  
  226. struct ICMProgressProcRecord {
  227.     ICMProgressUPP                    progressProc;
  228.     long                            progressRefCon;
  229. };
  230. typedef struct ICMProgressProcRecord ICMProgressProcRecord;
  231.  
  232. typedef ICMProgressProcRecord *ICMProgressProcRecordPtr;
  233.  
  234. struct ICMCompletionProcRecord {
  235.     ICMCompletionUPP                completionProc;
  236.     long                            completionRefCon;
  237. };
  238. typedef struct ICMCompletionProcRecord ICMCompletionProcRecord;
  239.  
  240. typedef ICMCompletionProcRecord *ICMCompletionProcRecordPtr;
  241.  
  242. struct ICMDataProcRecord {
  243.     ICMDataUPP                        dataProc;
  244.     long                            dataRefCon;
  245. };
  246. typedef struct ICMDataProcRecord ICMDataProcRecord;
  247.  
  248. typedef ICMDataProcRecord *ICMDataProcRecordPtr;
  249.  
  250. struct ICMFlushProcRecord {
  251.     ICMFlushUPP                        flushProc;
  252.     long                            flushRefCon;
  253. };
  254. typedef struct ICMFlushProcRecord ICMFlushProcRecord;
  255.  
  256. typedef ICMFlushProcRecord *ICMFlushProcRecordPtr;
  257.  
  258. struct ICMAlignmentProcRecord {
  259.     ICMAlignmentUPP                    alignmentProc;
  260.     long                            alignmentRefCon;
  261. };
  262. typedef struct ICMAlignmentProcRecord ICMAlignmentProcRecord;
  263.  
  264. typedef ICMAlignmentProcRecord *ICMAlignmentProcRecordPtr;
  265.  
  266. struct DataRateParams {
  267.     long                            dataRate;
  268.     long                            dataOverrun;
  269.     long                            frameDuration;
  270.     long                            keyFrameRate;
  271.     CodecQ                            minSpatialQuality;
  272.     CodecQ                            minTemporalQuality;
  273. };
  274. typedef struct DataRateParams DataRateParams, *DataRateParamsPtr;
  275.  
  276. struct ImageDescription {
  277.     long                            idSize;                        /* total size of ImageDescription including extra data ( CLUTs and other per sequence data */
  278.     CodecType                        cType;                        /* what kind of codec compressed this data */
  279.     long                            resvd1;                        /* reserved for Apple use */
  280.     short                            resvd2;                        /* reserved for Apple use */
  281.     short                            dataRefIndex;                /* set to zero  */
  282.     short                            version;                    /* which version is this data */
  283.     short                            revisionLevel;                /* what version of that codec did this */
  284.     long                            vendor;                        /* whose  codec compressed this data */
  285.     CodecQ                            temporalQuality;            /* what was the temporal quality factor  */
  286.     CodecQ                            spatialQuality;                /* what was the spatial quality factor */
  287.     short                            width;                        /* how many pixels wide is this data */
  288.     short                            height;                        /* how many pixels high is this data */
  289.     Fixed                            hRes;                        /* horizontal resolution */
  290.     Fixed                            vRes;                        /* vertical resolution */
  291.     long                            dataSize;                    /* if known, the size of data for this image descriptor */
  292.     short                            frameCount;                    /* number of frames this description applies to */
  293.     Str31                            name;                        /* name of codec ( in case not installed )  */
  294.     short                            depth;                        /* what depth is this data (1-32) or ( 33-40 grayscale ) */
  295.     short                            clutID;                        /* clut id or if 0 clut follows  or -1 if no clut */
  296. };
  297. typedef struct ImageDescription ImageDescription;
  298.  
  299. typedef ImageDescription *ImageDescriptionPtr;
  300.  
  301. typedef ImageDescriptionPtr *ImageDescriptionHandle;
  302.  
  303. struct CodecInfo {
  304.     Str31                            typeName;                    /* name of the codec type i.e.: 'Apple Image Compression' */
  305.     short                            version;                    /* version of the codec data that this codec knows about */
  306.     short                            revisionLevel;                /* revision level of this codec i.e: 0x00010001 (1.0.1) */
  307.     long                            vendor;                        /* Maker of this codec i.e: 'appl' */
  308.     long                            decompressFlags;            /* codecInfo flags for decompression capabilities */
  309.     long                            compressFlags;                /* codecInfo flags for compression capabilities */
  310.     long                            formatFlags;                /* codecInfo flags for compression format details */
  311.     UInt8                            compressionAccuracy;        /* measure (1-255) of accuracy of this codec for compress (0 if unknown) */
  312.     UInt8                            decompressionAccuracy;        /* measure (1-255) of accuracy of this codec for decompress (0 if unknown) */
  313.     unsigned short                    compressionSpeed;            /* ( millisecs for compressing 320x240 on base mac II) (0 if unknown)  */
  314.     unsigned short                    decompressionSpeed;            /* ( millisecs for decompressing 320x240 on mac II)(0 if unknown)  */
  315.     UInt8                            compressionLevel;            /* measure (1-255) of compression level of this codec (0 if unknown)  */
  316.     UInt8                            resvd;                        /* pad */
  317.     short                            minimumHeight;                /* minimum height of image (block size) */
  318.     short                            minimumWidth;                /* minimum width of image (block size) */
  319.     short                            decompressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  320.     short                            compressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  321.     long                            privateData;
  322. };
  323. typedef struct CodecInfo CodecInfo;
  324.  
  325. struct CodecNameSpec {
  326.     CodecComponent                    codec;
  327.     CodecType                        cType;
  328.     Str31                            typeName;
  329.     Handle                            name;
  330. };
  331. typedef struct CodecNameSpec CodecNameSpec;
  332.  
  333. struct CodecNameSpecList {
  334.     short                            count;
  335.     CodecNameSpec                    list[1];
  336. };
  337. typedef struct CodecNameSpecList CodecNameSpecList;
  338.  
  339. typedef CodecNameSpecList *CodecNameSpecListPtr;
  340.  
  341.  
  342. enum {
  343.     defaultDither                = 0,
  344.     forceDither                    = 1,
  345.     suppressDither                = 2,
  346.     useColorMatching            = 4
  347. };
  348.  
  349. struct ICMFrameTimeRecord {
  350.     wide                            value;                        /* frame time */
  351.     long                            scale;                        /* timescale of value/duration fields */
  352.     void                            *base;                        /* timebase */
  353.     long                            duration;                    /* duration frame is to be displayed (0 if unknown) */
  354.     Fixed                            rate;                        /* rate of timebase relative to wall-time */
  355. };
  356. typedef struct ICMFrameTimeRecord ICMFrameTimeRecord;
  357.  
  358. typedef ICMFrameTimeRecord *ICMFrameTimePtr;
  359.  
  360.  
  361. #if GENERATINGCFM
  362. #else
  363. #endif
  364.  
  365. enum {
  366.     uppICMDataProcInfo = kPascalStackBased
  367.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  368.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr*)))
  369.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  370.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  371.     uppICMFlushProcInfo = kPascalStackBased
  372.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  373.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  374.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  375.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  376.     uppICMCompletionProcInfo = kPascalStackBased
  377.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(OSErr)))
  378.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
  379.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  380.     uppICMProgressProcInfo = kPascalStackBased
  381.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  382.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(short)))
  383.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Fixed)))
  384.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  385.     uppStdPixProcInfo = kPascalStackBased
  386.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(PixMap*)))
  387.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Rect*)))
  388.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(MatrixRecord*)))
  389.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(short)))
  390.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(RgnHandle)))
  391.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(PixMap*)))
  392.          | STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(Rect*)))
  393.          | STACK_ROUTINE_PARAMETER(8, SIZE_CODE(sizeof(short))),
  394.     uppICMAlignmentProcInfo = kPascalStackBased
  395.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Rect*)))
  396.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  397. };
  398.  
  399. #if GENERATINGCFM
  400. #define NewICMDataProc(userRoutine)        \
  401.         (ICMDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMDataProcInfo, GetCurrentArchitecture())
  402. #define NewICMFlushProc(userRoutine)        \
  403.         (ICMFlushUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMFlushProcInfo, GetCurrentArchitecture())
  404. #define NewICMCompletionProc(userRoutine)        \
  405.         (ICMCompletionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMCompletionProcInfo, GetCurrentArchitecture())
  406. #define NewICMProgressProc(userRoutine)        \
  407.         (ICMProgressUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMProgressProcInfo, GetCurrentArchitecture())
  408. #define NewStdPixProc(userRoutine)        \
  409.         (StdPixUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppStdPixProcInfo, GetCurrentArchitecture())
  410. #define NewICMAlignmentProc(userRoutine)        \
  411.         (ICMAlignmentUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMAlignmentProcInfo, GetCurrentArchitecture())
  412. #else
  413. #define NewICMDataProc(userRoutine)        \
  414.         ((ICMDataUPP) (userRoutine))
  415. #define NewICMFlushProc(userRoutine)        \
  416.         ((ICMFlushUPP) (userRoutine))
  417. #define NewICMCompletionProc(userRoutine)        \
  418.         ((ICMCompletionUPP) (userRoutine))
  419. #define NewICMProgressProc(userRoutine)        \
  420.         ((ICMProgressUPP) (userRoutine))
  421. #define NewStdPixProc(userRoutine)        \
  422.         ((StdPixUPP) (userRoutine))
  423. #define NewICMAlignmentProc(userRoutine)        \
  424.         ((ICMAlignmentUPP) (userRoutine))
  425. #endif
  426.  
  427. #if GENERATINGCFM
  428. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  429.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMDataProcInfo, (dataP), (bytesNeeded), (refcon))
  430. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  431.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMFlushProcInfo, (data), (bytesAdded), (refcon))
  432. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  433.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMCompletionProcInfo, (result), (flags), (refcon))
  434. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  435.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMProgressProcInfo, (message), (completeness), (refcon))
  436. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  437.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppStdPixProcInfo, (src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  438. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  439.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMAlignmentProcInfo, (rp), (refcon))
  440. #else
  441. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  442.         (*(userRoutine))((dataP), (bytesNeeded), (refcon))
  443. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  444.         (*(userRoutine))((data), (bytesAdded), (refcon))
  445. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  446.         (*(userRoutine))((result), (flags), (refcon))
  447. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  448.         (*(userRoutine))((message), (completeness), (refcon))
  449. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  450.         (*(userRoutine))((src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  451. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  452.         (*(userRoutine))((rp), (refcon))
  453. #endif
  454.  
  455. extern pascal OSErr CodecManagerVersion(long *version)
  456.  TWOWORDINLINE(0x7000, 0xAAA3);
  457. extern pascal OSErr GetCodecNameList(CodecNameSpecListPtr *list, short showAll)
  458.  TWOWORDINLINE(0x7001, 0xAAA3);
  459. extern pascal OSErr DisposeCodecNameList(CodecNameSpecListPtr list)
  460.  TWOWORDINLINE(0x700F, 0xAAA3);
  461. extern pascal OSErr GetCodecInfo(CodecInfo *info, CodecType cType, CodecComponent codec)
  462.  TWOWORDINLINE(0x7003, 0xAAA3);
  463. extern pascal OSErr GetMaxCompressionSize(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, long *size)
  464.  TWOWORDINLINE(0x7004, 0xAAA3);
  465. extern pascal OSErr GetCompressionTime(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *compressTime)
  466.  TWOWORDINLINE(0x7005, 0xAAA3);
  467. extern pascal OSErr CompressImage(PixMapHandle src, const Rect *srcRect, CodecQ quality, CodecType cType, ImageDescriptionHandle desc, Ptr data)
  468.  TWOWORDINLINE(0x7006, 0xAAA3);
  469. extern pascal OSErr FCompressImage(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, CTabHandle clut, CodecFlags flags, long bufferSize, ICMFlushProcRecordPtr flushProc, ICMProgressProcRecordPtr progressProc, ImageDescriptionHandle desc, Ptr data)
  470.  TWOWORDINLINE(0x7007, 0xAAA3);
  471. extern pascal OSErr DecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle mask)
  472.  TWOWORDINLINE(0x7008, 0xAAA3);
  473. extern pascal OSErr FDecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapHandle matte, const Rect *matteRect, CodecQ accuracy, DecompressorComponent codec, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  474.  TWOWORDINLINE(0x7009, 0xAAA3);
  475. extern pascal OSErr CompressSequenceBegin(ImageSequence *seqID, PixMapHandle src, PixMapHandle prev, const Rect *srcRect, const Rect *prevRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate, CTabHandle clut, CodecFlags flags, ImageDescriptionHandle desc)
  476.  TWOWORDINLINE(0x700A, 0xAAA3);
  477. extern pascal OSErr CompressSequenceFrame(ImageSequence seqID, PixMapHandle src, const Rect *srcRect, CodecFlags flags, Ptr data, long *dataSize, UInt8 *similarity, ICMCompletionProcRecordPtr asyncCompletionProc)
  478.  TWOWORDINLINE(0x700B, 0xAAA3);
  479. extern pascal OSErr DecompressSequenceBegin(ImageSequence *seqID, ImageDescriptionHandle desc, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  480.  TWOWORDINLINE(0x700D, 0xAAA3);
  481. extern pascal OSErr DecompressSequenceBeginS(ImageSequence *seqID, ImageDescriptionHandle desc, Ptr data, long dataSize, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  482.  FOURWORDINLINE(0x203C, 0x30, 0x5D, 0xAAA3);
  483. extern pascal OSErr DecompressSequenceFrame(ImageSequence seqID, Ptr data, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  484.  TWOWORDINLINE(0x700E, 0xAAA3);
  485. extern pascal OSErr DecompressSequenceFrameS(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  486.  FOURWORDINLINE(0x203C, 0x16, 0x47, 0xAAA3);
  487. extern pascal OSErr DecompressSequenceFrameWhen(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc, const ICMFrameTimePtr frameTime)
  488.  FOURWORDINLINE(0x203C, 0x1A, 0x5E, 0xAAA3);
  489. extern pascal OSErr CDSequenceFlush(ImageSequence seqID)
  490.  FOURWORDINLINE(0x203C, 0x4, 0x5F, 0xAAA3);
  491. extern pascal OSErr SetDSequenceMatrix(ImageSequence seqID, MatrixRecordPtr matrix)
  492.  TWOWORDINLINE(0x7010, 0xAAA3);
  493. extern pascal OSErr SetDSequenceMatte(ImageSequence seqID, PixMapHandle matte, const Rect *matteRect)
  494.  TWOWORDINLINE(0x7011, 0xAAA3);
  495. extern pascal OSErr SetDSequenceMask(ImageSequence seqID, RgnHandle mask)
  496.  TWOWORDINLINE(0x7012, 0xAAA3);
  497. extern pascal OSErr SetDSequenceTransferMode(ImageSequence seqID, short mode, const RGBColor *opColor)
  498.  TWOWORDINLINE(0x7013, 0xAAA3);
  499. extern pascal OSErr SetDSequenceDataProc(ImageSequence seqID, ICMDataProcRecordPtr dataProc, long bufferSize)
  500.  TWOWORDINLINE(0x7014, 0xAAA3);
  501. extern pascal OSErr SetDSequenceAccuracy(ImageSequence seqID, CodecQ accuracy)
  502.  TWOWORDINLINE(0x7034, 0xAAA3);
  503. extern pascal OSErr SetDSequenceSrcRect(ImageSequence seqID, const Rect *srcRect)
  504.  TWOWORDINLINE(0x7035, 0xAAA3);
  505. extern pascal OSErr GetDSequenceImageBuffer(ImageSequence seqID, GWorldPtr *gworld)
  506.  TWOWORDINLINE(0x7015, 0xAAA3);
  507. extern pascal OSErr GetDSequenceScreenBuffer(ImageSequence seqID, GWorldPtr *gworld)
  508.  TWOWORDINLINE(0x7016, 0xAAA3);
  509. extern pascal OSErr SetCSequenceQuality(ImageSequence seqID, CodecQ spatialQuality, CodecQ temporalQuality)
  510.  TWOWORDINLINE(0x7017, 0xAAA3);
  511. extern pascal OSErr SetCSequencePrev(ImageSequence seqID, PixMapHandle prev, const Rect *prevRect)
  512.  TWOWORDINLINE(0x7018, 0xAAA3);
  513. extern pascal OSErr SetCSequenceFlushProc(ImageSequence seqID, ICMFlushProcRecordPtr flushProc, long bufferSize)
  514.  TWOWORDINLINE(0x7033, 0xAAA3);
  515. extern pascal OSErr SetCSequenceKeyFrameRate(ImageSequence seqID, long keyframerate)
  516.  TWOWORDINLINE(0x7036, 0xAAA3);
  517. extern pascal OSErr GetCSequenceKeyFrameRate(ImageSequence seqID, long *keyframerate)
  518.  FOURWORDINLINE(0x203C, 0x8, 0x4B, 0xAAA3);
  519. extern pascal OSErr GetCSequencePrevBuffer(ImageSequence seqID, GWorldPtr *gworld)
  520.  TWOWORDINLINE(0x7019, 0xAAA3);
  521. extern pascal OSErr CDSequenceBusy(ImageSequence seqID)
  522.  TWOWORDINLINE(0x701A, 0xAAA3);
  523. extern pascal OSErr CDSequenceEnd(ImageSequence seqID)
  524.  TWOWORDINLINE(0x701B, 0xAAA3);
  525. extern pascal OSErr GetCompressedImageSize(ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, long *dataSize)
  526.  TWOWORDINLINE(0x701C, 0xAAA3);
  527. extern pascal OSErr GetSimilarity(PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle desc, Ptr data, Fixed *similarity)
  528.  TWOWORDINLINE(0x701D, 0xAAA3);
  529. extern pascal OSErr GetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle *ctable)
  530.  TWOWORDINLINE(0x701E, 0xAAA3);
  531. extern pascal OSErr SetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle ctable)
  532.  TWOWORDINLINE(0x701F, 0xAAA3);
  533. extern pascal OSErr GetImageDescriptionExtension(ImageDescriptionHandle desc, Handle *extension, long idType, long index)
  534.  TWOWORDINLINE(0x7020, 0xAAA3);
  535. extern pascal OSErr SetImageDescriptionExtension(ImageDescriptionHandle desc, Handle extension, long idType)
  536.  TWOWORDINLINE(0x7021, 0xAAA3);
  537. extern pascal OSErr RemoveImageDescriptionExtension(ImageDescription **desc, long idType, long index)
  538.  FOURWORDINLINE(0x203C, 0xC, 0x3A, 0xAAA3);
  539. extern pascal OSErr CountImageDescriptionExtensionType(ImageDescription **desc, long idType, long *count)
  540.  FOURWORDINLINE(0x203C, 0xC, 0x3B, 0xAAA3);
  541. extern pascal OSErr GetNextImageDescriptionExtensionType(ImageDescription **desc, long *idType)
  542.  FOURWORDINLINE(0x203C, 0x8, 0x3C, 0xAAA3);
  543. extern pascal OSErr FindCodec(CodecType cType, CodecComponent specCodec, CompressorComponent *compressor, DecompressorComponent *decompressor)
  544.  TWOWORDINLINE(0x7023, 0xAAA3);
  545. extern pascal OSErr CompressPicture(PicHandle srcPicture, PicHandle dstPicture, CodecQ quality, CodecType cType)
  546.  TWOWORDINLINE(0x7024, 0xAAA3);
  547. extern pascal OSErr FCompressPicture(PicHandle srcPicture, PicHandle dstPicture, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  548.  TWOWORDINLINE(0x7025, 0xAAA3);
  549. extern pascal OSErr CompressPictureFile(short srcRefNum, short dstRefNum, CodecQ quality, CodecType cType)
  550.  TWOWORDINLINE(0x7026, 0xAAA3);
  551. extern pascal OSErr FCompressPictureFile(short srcRefNum, short dstRefNum, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  552.  TWOWORDINLINE(0x7027, 0xAAA3);
  553. extern pascal OSErr GetPictureFileHeader(short refNum, Rect *frame, OpenCPicParams *header)
  554.  TWOWORDINLINE(0x7028, 0xAAA3);
  555. extern pascal OSErr DrawPictureFile(short refNum, const Rect *frame, ICMProgressProcRecordPtr progressProc)
  556.  TWOWORDINLINE(0x7029, 0xAAA3);
  557. extern pascal OSErr DrawTrimmedPicture(PicHandle srcPicture, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  558.  TWOWORDINLINE(0x702E, 0xAAA3);
  559. extern pascal OSErr DrawTrimmedPictureFile(short srcRefnum, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  560.  TWOWORDINLINE(0x702F, 0xAAA3);
  561. extern pascal OSErr MakeThumbnailFromPicture(PicHandle picture, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  562.  TWOWORDINLINE(0x702A, 0xAAA3);
  563. extern pascal OSErr MakeThumbnailFromPictureFile(short refNum, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  564.  TWOWORDINLINE(0x702B, 0xAAA3);
  565. extern pascal OSErr MakeThumbnailFromPixMap(PixMapHandle src, const Rect *srcRect, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  566.  TWOWORDINLINE(0x702C, 0xAAA3);
  567. extern pascal OSErr TrimImage(ImageDescriptionHandle desc, Ptr inData, long inBufferSize, ICMDataProcRecordPtr dataProc, Ptr outData, long outBufferSize, ICMFlushProcRecordPtr flushProc, Rect *trimRect, ICMProgressProcRecordPtr progressProc)
  568.  TWOWORDINLINE(0x702D, 0xAAA3);
  569. extern pascal OSErr ConvertImage(ImageDescriptionHandle srcDD, Ptr srcData, short colorDepth, CTabHandle clut, CodecQ accuracy, CodecQ quality, CodecType cType, CodecComponent codec, ImageDescriptionHandle dstDD, Ptr dstData)
  570.  TWOWORDINLINE(0x7030, 0xAAA3);
  571. extern pascal OSErr GetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, ICMDataProcRecord *dataProc, ICMProgressProcRecord *progressProc)
  572.  TWOWORDINLINE(0x7037, 0xAAA3);
  573. extern pascal OSErr SetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  574.  TWOWORDINLINE(0x7038, 0xAAA3);
  575. extern pascal void StdPix(PixMapPtr src, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapPtr matte, const Rect *matteRect, short flags)
  576.  TWOWORDINLINE(0x700C, 0xAAA3);
  577. extern pascal OSErr TransformRgn(MatrixRecordPtr matrix, RgnHandle rgn)
  578.  TWOWORDINLINE(0x7039, 0xAAA3);
  579. /***********
  580.     preview stuff
  581. ***********/
  582. extern pascal void SFGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, DlgHookUPP dlgHook, SFReply *reply)
  583.  TWOWORDINLINE(0x7041, 0xAAA3);
  584. extern pascal void SFPGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, DlgHookUPP dlgHook, SFReply *reply, short dlgID, ModalFilterUPP filterProc)
  585.  TWOWORDINLINE(0x7042, 0xAAA3);
  586. extern pascal void StandardGetFilePreview(FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, StandardFileReply *reply)
  587.  TWOWORDINLINE(0x7043, 0xAAA3);
  588. extern pascal void CustomGetFilePreview(FileFilterYDUPP fileFilter, short numTypes, SFTypeList typeList, StandardFileReply *reply, short dlgID, Point where, DlgHookYDUPP dlgHook, ModalFilterYDUPP filterProc, const short *activeList, ActivateYDUPP activateProc, void *yourDataPtr)
  589.  TWOWORDINLINE(0x7044, 0xAAA3);
  590. extern pascal OSErr MakeFilePreview(short resRefNum, ICMProgressProcRecordPtr progress)
  591.  TWOWORDINLINE(0x7045, 0xAAA3);
  592. extern pascal OSErr AddFilePreview(short resRefNum, OSType previewType, Handle previewData)
  593.  TWOWORDINLINE(0x7046, 0xAAA3);
  594.  
  595. enum {
  596.     sfpItemPreviewAreaUser        = 11,
  597.     sfpItemPreviewStaticText    = 12,
  598.     sfpItemPreviewDividerUser    = 13,
  599.     sfpItemCreatePreviewButton    = 14,
  600.     sfpItemShowPreviewButton    = 15
  601. };
  602.  
  603. struct PreviewResourceRecord {
  604.     unsigned long                    modDate;
  605.     short                            version;
  606.     OSType                            resType;
  607.     short                            resID;
  608. };
  609. typedef struct PreviewResourceRecord PreviewResourceRecord, *PreviewResourcePtr, **PreviewResource;
  610.  
  611. extern pascal void AlignScreenRect(Rect *rp, ICMAlignmentProcRecordPtr alignmentProc)
  612.  FOURWORDINLINE(0x203C, 0x8, 0x4C, 0xAAA3);
  613. extern pascal void AlignWindow(WindowPtr wp, Boolean front, const Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  614.  FOURWORDINLINE(0x203C, 0xE, 0x4D, 0xAAA3);
  615. extern pascal void DragAlignedWindow(WindowPtr wp, Point startPt, Rect *boundsRect, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  616.  FOURWORDINLINE(0x203C, 0x14, 0x4E, 0xAAA3);
  617. extern pascal long DragAlignedGrayRgn(RgnHandle theRgn, Point startPt, Rect *boundsRect, Rect *slopRect, short axis, UniversalProcPtr actionProc, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  618.  FOURWORDINLINE(0x203C, 0x1E, 0x4F, 0xAAA3);
  619. extern pascal OSErr SetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  620.  FOURWORDINLINE(0x203C, 0x8, 0x50, 0xAAA3);
  621. extern pascal OSErr SetCSequenceFrameNumber(ImageSequence seqID, long frameNumber)
  622.  FOURWORDINLINE(0x203C, 0x8, 0x51, 0xAAA3);
  623. extern pascal QDErr NewImageGWorld(GWorldPtr *gworld, ImageDescriptionHandle idh, GWorldFlags flags)
  624.  FOURWORDINLINE(0x203C, 0xC, 0x52, 0xAAA3);
  625. extern pascal OSErr GetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  626.  FOURWORDINLINE(0x203C, 0x8, 0x53, 0xAAA3);
  627. extern pascal OSErr GetCSequenceFrameNumber(ImageSequence seqID, long *frameNumber)
  628.  FOURWORDINLINE(0x203C, 0x8, 0x54, 0xAAA3);
  629. extern pascal OSErr GetBestDeviceRect(GDHandle *gdh, Rect *rp)
  630.  FOURWORDINLINE(0x203C, 0x8, 0x55, 0xAAA3);
  631. extern pascal OSErr SetSequenceProgressProc(ImageSequence seqID, ICMProgressProcRecord *progressProc)
  632.  FOURWORDINLINE(0x203C, 0x8, 0x56, 0xAAA3);
  633. extern pascal OSErr GDHasScale(GDHandle gdh, short depth, Fixed *scale)
  634.  FOURWORDINLINE(0x203C, 0xA, 0x5A, 0xAAA3);
  635. extern pascal OSErr GDGetScale(GDHandle gdh, Fixed *scale, short *flags)
  636.  FOURWORDINLINE(0x203C, 0xC, 0x5B, 0xAAA3);
  637. extern pascal OSErr GDSetScale(GDHandle gdh, Fixed scale, short flags)
  638.  FOURWORDINLINE(0x203C, 0xA, 0x5C, 0xAAA3);
  639. extern pascal OSErr ICMShieldSequenceCursor(ImageSequence seqID)
  640.  FOURWORDINLINE(0x203C, 0x4, 0x62, 0xAAA3);
  641. extern pascal void ICMDecompressComplete(ImageSequence seqID, OSErr err, short flag, ICMCompletionProcRecordPtr completionRtn)
  642.  FOURWORDINLINE(0x203C, 0xC, 0x63, 0xAAA3);
  643. extern pascal OSErr SetDSequenceTimeCode(ImageSequence seqID, void *timeCodeFormat, void *timeCodeTime)
  644.  FOURWORDINLINE(0x203C, 0xC, 0x64, 0xAAA3);
  645.  
  646. enum {
  647.     identityMatrixType            = 0x00,                            /* result if matrix is identity */
  648.     translateMatrixType            = 0x01,                            /* result if matrix translates */
  649.     scaleMatrixType                = 0x02,                            /* result if matrix scales */
  650.     scaleTranslateMatrixType    = 0x03,                            /* result if matrix scales and translates */
  651.     linearMatrixType            = 0x04,                            /* result if matrix is general 2 x 2 */
  652.     linearTranslateMatrixType    = 0x05,                            /* result if matrix is general 2 x 2 and translates */
  653.     perspectiveMatrixType        = 0x06                            /* result if matrix is general 3 x 3 */
  654. };
  655.  
  656. typedef unsigned short MatrixFlags;
  657.  
  658. extern pascal short GetMatrixType(const MatrixRecord *m)
  659.  TWOWORDINLINE(0x7014, 0xABC2);
  660. extern pascal void CopyMatrix(const MatrixRecord *m1, MatrixRecord *m2)
  661.  TWOWORDINLINE(0x7020, 0xABC2);
  662. extern pascal Boolean EqualMatrix(const MatrixRecord *m1, const MatrixRecord *m2)
  663.  TWOWORDINLINE(0x7021, 0xABC2);
  664. extern pascal void SetIdentityMatrix(MatrixRecord *matrix)
  665.  TWOWORDINLINE(0x7015, 0xABC2);
  666. extern pascal void TranslateMatrix(MatrixRecord *m, Fixed deltaH, Fixed deltaV)
  667.  TWOWORDINLINE(0x7019, 0xABC2);
  668. extern pascal void RotateMatrix(MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY)
  669.  TWOWORDINLINE(0x7016, 0xABC2);
  670. extern pascal void ScaleMatrix(MatrixRecord *m, Fixed scaleX, Fixed scaleY, Fixed aboutX, Fixed aboutY)
  671.  TWOWORDINLINE(0x7017, 0xABC2);
  672. extern pascal void SkewMatrix(MatrixRecord *m, Fixed skewX, Fixed skewY, Fixed aboutX, Fixed aboutY)
  673.  TWOWORDINLINE(0x7018, 0xABC2);
  674. extern pascal OSErr TransformFixedPoints(const MatrixRecord *m, FixedPoint *fpt, long count)
  675.  TWOWORDINLINE(0x7022, 0xABC2);
  676. extern pascal OSErr TransformPoints(const MatrixRecord *mp, Point *pt1, long count)
  677.  TWOWORDINLINE(0x7023, 0xABC2);
  678. extern pascal Boolean TransformFixedRect(const MatrixRecord *m, FixedRect *fr, FixedPoint *fpp)
  679.  TWOWORDINLINE(0x7024, 0xABC2);
  680. extern pascal Boolean TransformRect(const MatrixRecord *m, Rect *r, FixedPoint *fpp)
  681.  TWOWORDINLINE(0x7025, 0xABC2);
  682. extern pascal Boolean InverseMatrix(const MatrixRecord *m, MatrixRecord *im)
  683.  TWOWORDINLINE(0x701C, 0xABC2);
  684. extern pascal void ConcatMatrix(const MatrixRecord *a, MatrixRecord *b)
  685.  TWOWORDINLINE(0x701B, 0xABC2);
  686. extern pascal void RectMatrix(MatrixRecord *matrix, const Rect *srcRect, const Rect *dstRect)
  687.  TWOWORDINLINE(0x701E, 0xABC2);
  688. extern pascal void MapMatrix(MatrixRecord *matrix, const Rect *fromRect, const Rect *toRect)
  689.  TWOWORDINLINE(0x701D, 0xABC2);
  690.  
  691. #ifdef __CFM68K__
  692. #pragma lib_export off
  693. #endif
  694.  
  695. #if GENERATINGPOWERPC
  696. #pragma options align=reset
  697. #endif
  698.  
  699. #ifdef __cplusplus
  700. }
  701. #endif
  702.  
  703. #endif /* __IMAGECOMPRESSION__ */
  704.